package com.ipworkbench.ipw.customermanagement;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ipworkbench.common.struts2.action.BaseAction;

@SuppressWarnings("serial")
public class CustomerInfoAct extends BaseAction {

	public String findCustomerInfo(){
		try {
			
			Map<String, Object> map = new HashMap<String, Object>();
			
			map.put("customerNo","A00001");
			map.put("customerShortName","ABC");
			map.put("nodeFullName","ABC公司");
			map.put("nodeFullName","张三");
			map.put("fristContactWay","电话");
			map.put("caseSourceMan","李四");
			map.put("customerQuality","普通客户");
			map.put("orgCost","代缴不垫付");
			map.put("yearCost","代缴不垫付");
			map.put("orgCostInvoice","客户不需要");
			List<Map<String, Object>> list = new ArrayList<Map<String,Object>>();
			list.add(map);
			
			jsonMap.put("total", list.size());
			jsonMap.put("rows", list);
			
			
			   
			
		} catch (Exception e) {
			return ERROR;
		}
		return SUCCESS;
	}
	
	/**
	 * 
	 * @return
	 */
	public String findApplicantList(){
		try {
			
			Map<String, Object> map = new HashMap<String, Object>();
			
			map.put("applicantName","黄步明");
			map.put("applicantEnName","BumingHuang");
			map.put("applicantType","申请人");
			map.put("applicantPhone","13455667788");
			map.put("applicantAddress","深圳市深南中路阳光高尔夫大厦A座1908");
			map.put("postcode","518000");
			map.put("validMark","有效");			
			
			List<Map<String, Object>> list = new ArrayList<Map<String,Object>>();
			list.add(map);
			
			jsonMap.put("total", list.size());
			jsonMap.put("rows", list);
			
			
			   
			
		} catch (Exception e) {
			return ERROR;
		}
		return SUCCESS;
	}
	
	
	private Map<String, Object> jsonMap = new HashMap<String, Object>();


	public Map<String, Object> getJsonMap() {
		return jsonMap;
	}


	public void setJsonMap(Map<String, Object> jsonMap) {
		this.jsonMap = jsonMap;
	}
	
	
	
}
